﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="SysComInfo.aspx.cs"
    Inherits="Manager_SysComInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>企业资料管理</title>
    <style type="text/css">
        .x-grid3-row-body .expander
        {
            padding-left:25px;
            padding-top:5px;
            padding-bottom:5px;
        }
        .x-grid3-row-body .expander p
        {
            padding-left:25px;
            padding-top:5px;
            padding-bottom:5px;
        }
        .x-grid3-row-body .expander strong
        {
            font-weight: bold;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManage1" runat="server" AjaxLoadingType="mask" AutoSizePanelID="gridList" />
        <ext:Grid ID="gridList" runat="server" Title="企业资料管理" AutoScroll="true" EmptyText="暂时没有相关数据!"
            AllowPaging="true" ShowBorder="true" EnableCheckBoxSelect="true" EnableRowNumber="true"
            DataKeyNames="cId" ForceFitAllTime="true" ShowHeader="false">
            <Columns>
                <ext:TemplateField ID="tfExpander" runat="server" RenderAsRowExpander="true">
                    <ItemTemplate>
                        <div class="expander">
                            <p>
                                <strong>优化关键词：</strong><%# Eval("cKeywords")%></p>
                            <p>
                                <strong>优化描述：</strong><%# Eval("cDescription")%></p>
                            <p>
                                <strong>详细内容：</strong><%# HttpUtility.HtmlDecode(Convert.ToString(Eval("cNotes")))%></p>
                        </div>
                    </ItemTemplate>
                </ext:TemplateField>
                <ext:BoundField ID="bfName" runat="server" DataField="cName" HeaderText="信息名称" />
                <ext:BoundField ID="bfCode" runat="server" DataField="cCode" HeaderText="编号" />
                <ext:BoundField ID="bfAddTime" runat="server" DataField="cAddTime" HeaderText="操作时间"
                    Width="120" TextAlign="center" />
                <ext:CheckBoxField ID="cboxStatus0" runat="server" DataField="cStatus" HeaderText="菜单显示"
                    Width="40" TextAlign="center" />
                <ext:WindowField TextAlign="Center" Width="30px" WindowID="winForm" Icon="basketEdit"
                    ToolTip="编辑" DataIFrameUrlFields="cId" DataIFrameUrlFormatString="CompInfoAdd.aspx?CompId={0}"
                    Title="企业信息编辑" />
            </Columns>
            <Toolbars>
                <ext:Toolbar ID="tblComp" runat="server" Position="top">
                    <Items>
                        <ext:Label ID="lblShowTitle" runat="server" Text="企业资料管理">
                        </ext:Label>
                        <ext:Button ID="btnCNVer" runat="server" Text="中文版" OnClick="btnCNVer_Click" Visible="false">
                        </ext:Button>
                        <ext:Button ID="btnENVer" runat="server" Text="英文版" OnClick="btnENVer_Click" Visible="false">
                        </ext:Button>
                        <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                        </ext:ToolbarFill>
                        <ext:Button ID="btnAddMenu" runat="server" Text="新增企业信息" Icon="Add" OnClick="btnAddCompInfo_Click">
                        </ext:Button>
                        <ext:Button ID="btnDeleteMenu" runat="server" Text="删除选中" Icon="delete" OnClick="btnDeleteCompInfo_Click">
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <PageItems>
                <ext:Button ID="btnRefresh" runat="server" Icon="arrowrefresh" OnClick="btnRefresh_Click">
                </ext:Button>
                <ext:ToolbarFill ID="ToolbarFill3" runat="server">
                </ext:ToolbarFill>
                <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                </ext:ToolbarSeparator>
                <ext:ToolbarText ID="ToolbarText2" runat="server" Text="每页记录数：">
                </ext:ToolbarText>
                <ext:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
                    OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                    <ext:ListItem Text="15" Value="15" />
                    <ext:ListItem Text="20" Value="20" />
                    <ext:ListItem Text="25" Value="25" Selected="true" />
                </ext:DropDownList>
            </PageItems>
        </ext:Grid>
        <ext:Window ID="winForm" runat="server" Hidden="true" Width="1000px" EnableMaximize="true"
            EnableResize="true" CloseAction="hideRefresh" Height="650px" EnableIFrame="true"
            AutoScroll="true">
        </ext:Window>
    </form>
</body>
</html>
